/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fb.vis.types;

import com.restfb.Facebook;
import java.util.Objects;

/**
 *
 * @author Greld
 */
public class Friendship {
      @Facebook
      private String uid1;
      
      
      @Facebook
      private String uid2;

    public String getUid1() {
        return uid1;
    }

    public void setUid1(String uid1) {
        this.uid1 = uid1;
    }

    public String getUid2() {
        return uid2;
    }

    public void setUid2(String uid2) {
        this.uid2 = uid2;
    }

    @Override
    public String toString() {
        return "uid1: "+uid1+", uid2: "+uid2;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 71 * hash + Objects.hashCode(this.uid1) + Objects.hashCode(this.uid2);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Friendship other = (Friendship) obj;
        if (!Objects.equals(this.uid1, other.uid1) && !Objects.equals(this.uid1, other.uid2)) {
            return false;
        }
        if (!Objects.equals(this.uid2, other.uid2) && !Objects.equals(this.uid2, other.uid1)) {
            return false;
        }
        return true;
    }
      
      
}
